﻿using System.Collections.Generic;
using PerceptiveMCAPI.Types;
//

namespace PerceptiveMCAPI_Test
{
   public partial class get_campaignSegment : System.Web.UI.UserControl
   {
      public ApiMethod method { get; set; }
      public string ListId
      {
         get { return tbListId.Text.Trim(); }
         set { tbListId.Text = value; }
      }
      public string Match
      {
         get { return sub_SegmentOptions1.Match; }
      }

      public List<campaignSegmentCondition> SegmentConditions
      {
         get { return sub_SegmentOptions1.SegmentConditions; }
      }
      // ----------------------------------------------------
      public void Setup()
      {
         this.Visible = true;
         lblMethod.Text = method.name;
         lblSection.Text = method.section;
         tbListId.Focus();
      }
      // ----------------------------------------------------
   }
}